#include "last_fib_num.h"
#include <gtest/gtest.h>

TEST(fib2_test, boundary_input)
{
    EXPECT_EQ(1, last_fib_num(1));
    EXPECT_EQ(1, last_fib_num(2));
    EXPECT_EQ(2, last_fib_num(3));
    EXPECT_EQ(3, last_fib_num(4));
    EXPECT_EQ(5, last_fib_num(5));
    EXPECT_EQ(8, last_fib_num(6));
    EXPECT_EQ(3, last_fib_num(7));
    EXPECT_EQ(1, last_fib_num(8));

    EXPECT_EQ(9, last_fib_num(38));
    EXPECT_EQ(6, last_fib_num(39));
    EXPECT_EQ(5, last_fib_num(40));

    EXPECT_EQ(5, last_fib_num(1000000));

    EXPECT_EQ(6, last_fib_num(9999999));
    EXPECT_EQ(5, last_fib_num(10000000));
}

